package entity.factorybean;

import org.springframework.beans.factory.FactoryBean;

public class AFactoryBean implements FactoryBean {
  @Override
  public Object getObject() throws Exception {
    System.out.println("factoryBean 的getObject方法被调用---");
    return new A();
  }

  @Override
  public Class getObjectType() {
    return A.class;
  }

  @Override
  public boolean isSingleton() {
    return true;
  }
}
